﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace Kaixin.Tools
{
    public class Util
    {
        public static bool GetNameUId(string userInfo, out string name, out string uid)
        { 
            string[] info = null;
            try
            {
                info = Regex.Split(userInfo, @"\s+");
                name = info[0];
                uid = info[1];
                return true;
            }
            catch (Exception)
            {
                name = "";
                uid = "";
                return false;
            }
        }

    }
}
